﻿using System.Web.Mvc;

namespace HNCSolutions.Areas.Admin
{
    public class AdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                name: "Admin_default",
                url: "Admin/{controller}/{action}/{id}",
                defaults: new { controller = "CongTy", action = "Edit", id = 1 },
                namespaces: new[] { "HNCSolutions.Areas.Admin.Controllers" }
            );

            //context.MapRoute(
            //   name: "Default",
            //   url: "{controller}/{action}/{id}",
            //   defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional });
        }
    }
}
